package com.yichen.entity;

import lombok.Getter;

/**
 * @Classname QueryTypeEnum
 * @Description
 * @Author caozhenhao001
 * @Date 2024/6/6
 * @Version
 */

@Getter
public enum QueryTypeEnum {
    LIKE("like", "模糊"),
    EQUALS("equals", "等值"),
    GREATER_THAN("greaterThan", "大于"),
    GREATER_THAN_OR_EQUALS("greaterThanOrEquals", "大于等于"),
    LESS_THAN("lessThan", "小于"),
    LESS_THAN_OR_EQUALS("lessThanOrEquals", "小于等于"),
    BETWEEN("between", "区间"),
    NOT_QUERY("notQuery", "不查询，如分页查询中的pageSize和pageNum");


    private final String note;
    private final String code;


    QueryTypeEnum(String code, String note) {
        this.note = note;
        this.code = code;
    }
}
